package com.jf.test.mvvm

import android.os.Bundle
import com.jf.test.R
import com.jf.test.databinding.ActivityMainBinding
import com.jf.test.mvvm.base.BaseActivity
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlin.coroutines.CoroutineContext

class MainActivity : BaseActivity<ActivityMainBinding, MainVM>() ,CoroutineScope{

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        bindView(R.layout.activity_main, MainVM::class.java);
        binding?.viewModel = viewModel;
        viewModel?.testVM();
    }

    override val coroutineContext: CoroutineContext
        get() = Dispatchers.Default

    fun testAC(){

    }
}